<template>
<div>
  欢迎来到首页
  当前用户：xxx
  <a href="javascrip:void(0)" @click="logout">安全退出</a>

</div>
</template>

<script>
export default {
  name: "top",
  methods:{
    logout(){
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped>

</style>
